package com.gui.main;

import com.gui.client.RedisClient;
import com.gui.connect.RedisReply;
import com.gui.util.Cmd;

import java.io.IOException;

/**
 * Created by Gui on 2017/7/22.
 */
public class RedisClientDemo {

    public static void main(String[] args) {

        RedisReply reply = null;

        RedisClient client = new RedisClient("192.168.100.101", 6379);
//        client.setPassword("123456");
        client.connect();

        reply = client.sendCmd(Cmd.HDEL, "name", "gui");
        System.out.println(reply);

        try {
            client.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

}
